package com.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * 排片表
 */
public class Films implements Serializable {

    private Integer id;
    private Integer movieId;
    private Date startTime;
    private Date stopTime;
    private Integer cinemaId;
    private Double price;
    private Integer state;
    private Integer spare;

    private Movie movie;
    private Cinema cinema;

    public Films() {
    }

    public Films(Integer id) {
        this.id = id;
    }

    public Films(Integer movieId, Date startTime, Date stopTime, Integer cinemaId, Double price, Integer state, Integer spare) {
        this.movieId = movieId;
        this.startTime = startTime;
        this.stopTime = stopTime;
        this.cinemaId = cinemaId;
        this.price = price;
        this.state = state;
        this.spare = spare;
    }

    public Films(Integer id, Integer movieId, Date startTime, Date stopTime, Integer cinemaId, Double price, Integer state, Integer spare) {
        this.id = id;
        this.movieId = movieId;
        this.startTime = startTime;
        this.stopTime = stopTime;
        this.cinemaId = cinemaId;
        this.price = price;
        this.state = state;
        this.spare = spare;
    }

    @Override
    public String toString() {
        return "Films{" +
                "id=" + id +
                ", movieId=" + movieId +
                ", startTime=" + startTime +
                ", stopTime=" + stopTime +
                ", cinemaId=" + cinemaId +
                ", price=" + price +
                ", state=" + state +
                ", spare=" + spare +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getMovieId() {
        return movieId;
    }

    public void setMovieId(Integer movieId) {
        this.movieId = movieId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getStopTime() {
        return stopTime;
    }

    public void setStopTime(Date stopTime) {
        this.stopTime = stopTime;
    }

    public Integer getCinemaId() {
        return cinemaId;
    }

    public void setCinemaId(Integer cinemaId) {
        this.cinemaId = cinemaId;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getSpare() {
        return spare;
    }

    public void setSpare(Integer spare) {
        this.spare = spare;
    }

    public Movie getMovie() {
        return movie;
    }

    public void setMovie(Movie movie) {
        this.movie = movie;
    }

    public Cinema getCinema() {
        return cinema;
    }

    public void setCinema(Cinema cinema) {
        this.cinema = cinema;
    }
}
